package springbootdubbo.controller;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import rpc.Dubborpc;


@RestController
public class HelloController {
    @Reference
    private Dubborpc dubborpc;
    @RequestMapping("sayhello")

    public String sayhello(String name) throws InterruptedException {
        return dubborpc.sayHello(name);
    }


}